package com.wzp.yyptproject.repository;


import com.wzp.yyptproject.entity.Doctor;
import com.wzp.yyptproject.entity.YuYue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface YuYueRepository extends JpaRepository<YuYue,Integer> {
    List<YuYue> findAndByUid(Integer uid);
    YuYue findAllByOid(Integer oid);
    List<YuYue> findAllByDidAndOtimesAndOdates(Integer did,String otimes,String odates);
    List<YuYue> findAllByUidAndOtimesAndOdates(Integer uid,String otimes,String odates);

}
